package com.trkj.dao.mybatis;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.trkj.pojos.LiveinrecordTable;

@Mapper
public interface LiveinrecordTableMapper {
	
	public List<LiveinrecordTable> dynamicFinfLiveIn(Map<String,Object> map);
	/**
	 * 根据姓名模糊查询
	 * @param likename
	 * @return
	 */
	public List<LiveinrecordTable> fuzzyfindLiveInByname(@Param("likename") String likename);
	/**
	 * 根据ID模糊查询
	 * @param likeID
	 * @return
	 */
	public List<LiveinrecordTable> fuzzyfindLiveInByLiveID(@Param("likeID") String likeID);
	/**
	 * 根据住院号查询
	 * @param liveID
	 * @return
	 */
	public LiveinrecordTable findLiveByLiveID(
			@Param("liveID") String liveID);
	/**
	 * 动态查询住院医生信息
	 * @param map
	 * @return
	 */
	public List<Map<String,Object>> fuzzyfindDoctor(Map<String,Object> map);
	/**
	 * 根据姓名模糊查询住院通知
	 * @param likeName
	 * @return
	 */
	public List<Map<String,Object>> findLiveNoticByLikeName(
			@Param("likeName") String likeName);
	/**
	 * 根据住院号查询床位
	 * @param liveID
	 * @return
	 */
	public Map<String,Object> findBedIDByLiveID(
			@Param("liveID") String liveID);

}
